<?php
require_once('BasicCredential.class.php');

class SHA1BasicCredential extends BasicCredential {
    function  SHA1BasicCredential (){
        parent::BasicCredential();
       
    }
    
    function getUsername(){
        return $this->username;
    }  
    function getPassword(){
        return $this->password;
    }  
    
    function setUsername($uname){
        $this->username=$uname;
    }  
    function setPassword($plainpwd){
        $this->password=sha1($plainpwd);
    }  
}

?>